package com.qiku.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiku.authority.dao.UserDao;
import com.qiku.authority.pojo.User;
import com.qiku.authority.pojo.UserDTO;

public interface UserService {

    /**
     * 登录功能
     * @param phone
     * @param password
     * @return
     */
    UserDTO<User> login(String phone , String password);


    /**
     * 校验功能
     * @param token
     * @return
     */
    UserDTO<User> check(String token);


    /**
     * 使用手机验证码登录
     * @param phoneNumber
     * @return
     */
    UserDTO loginPhoneSms(String phoneNumber);


    /**
     * 用户注册
     * @param phoneNumber
     * @param password
     * @param nickname
     * @param headimg
     */
    public Integer register(String phoneNumber, String password, String nickname, String headimg);
}
